<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:uri="http://www.springframework.org/tags/form">  

<head>
<title>Being Java Guys | Spring DI Hello World</title>
<style>
body {
	font-size: 20px;
	color: teal;
	font-family: Calibri;
}

td {
	font-size: 15px;
	color: black;
	width: 100px;
	height: 22px;
	text-align: center;
}

.heading {
	font-size: 18px;
	color: white;
	font: bold;
	background-color: orange;
	border: thick;
}
</style>
</head>
<body>
	<center>



		<b>User List | Being Java Guys </b>





		<table border="1" var="nt"
				value="#{nhaTroManageBean.loadThongTinNT()}">
			<tr>
				<td class="heading">User Id</td>
				<td class="heading">First Name</td>
				<td class="heading">Last Name</td>
				<td class="heading">Gender</td>
				<td class="heading">City</td>
				<td class="heading">Edit</td>
			
			</tr>
			<c:forEach var="user"
				value="#{nhaTroManageBean.loadThongTinNT()}">
				<tr>
					<td value="#{nhaTroManageBean.maNT}" /></td>
					<td>${user.diaChiNT}</td>
					<td>${user.tenTKCNT}</td>
					<td>${user.tenTKQTV}</td>
					<td>${user.moTaNT}</td>
					<td><a href="updateNhaTro.xhtml?id=#{nhaTroManageBean.edit()}">Edit</a></td>
					
				</tr>
			</c:forEach>
			<tr>
				<td colspan="7"><a href="insertNhaTro.xhtml">Add New User</a></td>
			</tr>
		</table>

	</center>
</body>
</html>
